package Teacher;

public class Teacher {
    private String name, sex;
    private int ageOfTeaching;
    public Teacher(String name,String sex,int ageOfTeaching){
        this.name=name;
        this.sex=sex;
        this.ageOfTeaching=ageOfTeaching;
    }

    // 加上自我介绍的方法
    public void selfIntroduction() {
        System.out.println(name+"的自我介绍：各位专家老师好，我是这次教学质量检查的受检查教师，首先欢迎各位老师的到来......");
    }

    // 上课，子类重写
    public void giveLession(TeacherCheck t,LoadRuner s) {
        System.out.println(name + "开始用"+s.getName()+"给来检查的"+t.getName()+"老师进行"+s.getTime()+"的课程了。");
    }

    public int getAgeOfTeaching() {
        return ageOfTeaching;
    }

    public void setAgeOfTeaching(int ageOfTeaching) {
        this.ageOfTeaching = ageOfTeaching;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
